package com.sefon.smarteconomy.domain;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Id;
 
/**
 * 
 * Copyright: Copyright (c) 2018 SefonSoft 
 * 
 * @ClassName: User.java 
 * @Description:用户和客户关系
 * 
 * @version: v1.0.0
 * @author: SF2170
 * @by AnalysisExcel2File.java
 * @Date 2018/03/26 22:07:28
 * 
 */
@Entity
@Table(name="user_client")
public class UserClient {

	/**
	* UUID
	*/
	@Id 
	@Column(name="`id`", length=64, columnDefinition="varchar(64) COMMENT '采用uuid，方便管理'")
	private String id;

	/**
	* UUID
	*/
	@Column(name="`user_id`", nullable=false, length=255, columnDefinition="varchar(255) COMMENT '用户id'")
	private String userId;

	/**
	* 关联id
	*/
	@Column(name="`client_id`", nullable=false, length=10, columnDefinition="bigint(10) COMMENT '客户id'")
	private Long clientId;

	/**
	* 101 收藏 102 查看 （100-199:客户关系）
	*/
	@Column(name="`relation`", nullable=false, length=3, columnDefinition="int(3) COMMENT '关系'")
	private Integer relation;

	@Column(name="`create_date`", columnDefinition="datetime COMMENT '创建时间'")
	private Date createDate;


	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}

	public Long getClientId() {
		return clientId;
	}

	public void setClientId(Long clientId) {
		this.clientId = clientId;
	}

	public Integer getRelation() {
		return relation;
	}

	public void setRelation(Integer relation) {
		this.relation = relation;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

}
